/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.pod.hoteishilton.dao;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 *
 * @author Tigaz
 */
public class DatabaseService extends UnicastRemoteObject implements DatabaseInterface{

    protected static DAOHospede daoHospede;
    
    public DatabaseService() throws RemoteException{
        if(daoHospede == null){
            daoHospede = new DAOHospede();
        }
        
    }

    public static DAOHospede getDaoHospede() {
        return daoHospede;
    }

    public static void setDaoHospede(DAOHospede daoHospede) {
        DatabaseService.daoHospede = daoHospede;
    }
    
}
